package com.hudongwx.yuan_sdjj.utils;

import org.xutils.http.RequestParams;
import org.xutils.http.app.ResponseParser;
import org.xutils.http.request.UriRequest;

import java.lang.reflect.Type;

/**
 * Created by hudongwx on 16-10-26.
 */
public class JsonParse implements ResponseParser {

    @Override
    public void checkResponse(UriRequest request) throws Throwable {

    }

    @Override
    public Object parse(Type resultType, Class<?> resultClass, String result) throws Throwable {
        MyJsonObject jsonObject = new MyJsonObject(result);
        return jsonObject;
    }

}
